//:C04:CppLib.h
// C-like library converted to C++

struct Stash
{
    int size;        // Sizeof each space
    int quantity;    // Numberof storage spaces
    int next;        // Next empty space
    // Dynamically allocated array of bytes:
    unsigned char *storage;
    // Functions!
    void initialize(int size);
    void cleanup();
    int add(const void *element);
    void *fetch(int index);
    int count();
    void inflate(int increase);
};
